<script type="text/javascript">
$(document).ready(function(){
	$(".imageYahoo").each(function(){
		data = {
    			yahooID: $(this).attr("id")
            };
		$.ajax({
			url: "<?php echo $this->url->action("onlinesupport","ProductPage");?>",
    		data: data,
    		type: "POST",
    		dataType: "json",
    		success: function(response){
				$("#" + response.id).html('<img style="border: 0;" height="18" width="18" src="' + response.image + '"/>');
        	}
    	});
	});
});
</script>
<div class="right-box">
                <div class="box_head">
                    <div class="inner1">
                        <div class="inner2">
                            <div class="inner3">
                                <a><h2>Hỗ trợ trực tuyến</h2></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box">
                    <div class="inner1">
                        <div class="box-indent">
                            <div class="box1_body">
                                <div class="sideBoxContent centeredContent">
                                <?php 
                                foreach ($this->arrSupports as $key => $support)
                                {
                                ?>
                                   <div style="font-weight: bold; font-size: 11pt;"><?php echo $key;?></div>
                                   <div class="support-content">
										<table style="margin-left: 10px;">
                                   	<?php foreach ($support as $item)
                                   	{
                                   	?>	<tr>
                                   		<td style="width: 100px;"><?php echo $item['name']?></td>
                                   		<td>
                                   			<a href="ymsgr:sendim?<?php echo $item['yahooID'];?>&amp;m=Hello">
                                   			<div class="imageYahoo" id="<?php echo $item['yahooID'];?>">
                                   				<img style="border: 0;" height="18" width="18" src="Content/gmode_newproduct/images/online.png"/>
                                   			</div></a>
                                   		</td>
                                   		<td>
                                   			<a href="skype:<?php echo $item['skypeID']?>?call">
                                   				<img src="http://mystatus.skype.com/smallicon/<?php echo $item['skypeID']?>" style="border: none;" width="18" height="18" alt="My status" /></a>
                                   		</td>
                                   		</tr>
                                   	<?php
                                   	}
                                   	?>
                                   		</table>
                                   </div>
                                <?php }?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>